#include "coin.h"
#include <QPixmap>

Coin::Coin(const QString& imgPath, QGraphicsItem* parent)
    : QGraphicsPixmapItem(parent)
{
    QPixmap pixmap(imgPath);
    if (pixmap.isNull()) {
        qFatal("Failed to load coin image: %s", qUtf8Printable(imgPath));
    }
    setPixmap(pixmap);

}
